﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;

namespace NOSDC.Pocos
{
    public class UserDetail
    {
        public virtual Guid UserID { get; set; }

        [Required]
        [StringLength(100)]
        public virtual string FirstName { get; set; }

        [Required]
        [StringLength(100)]
        public virtual string LastName { get; set; }

        [Required]
        [StringLength(100)]
        public virtual string Company { get; set; }

        [StringLength(200)]
        public virtual string Position { get; set; }

        [StringLength(16)]
        public virtual string PhoneNumber { get; set; }

        [MustBeTrue(ErrorMessage = "You must accept the terms and conditions")]
        public virtual bool Terms { get; set; }

        public override string ToString()
        {
            return FirstName + " " + LastName;
        }
    }
}
